<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<%@ page language="java" pageEncoding="UTF-8"%>
<%@ include file="/pages/safeai/jsp/common/taglibs.jsp"%>
<html>
	<head>
		<title>编辑订单</title>
		<%@ include file="/pages/safeai/jsp/common/meta.jsp"%>
		<script type="text/javascript" src="${ctx}/script/order.js"></script>
		<link href="${ctx}/css/safeai/together.css" rel="stylesheet" type="text/css">
		<style type=text/css>
.delMouseOver {
	background: #d0e0ff;
	color: black;
	cursor: hand;
	font-family: verdana, arial, helvetica;
	font-size: 12px;
}

.scheduleButtonVisible {
	background: silver;
	border-bottom: gray 1px dashed;
	border-left: white 1px dashed;
	border-right: gray 1px dashed;
	border-top: white 1px dashed;
	color: black;
	cursor: hand;
	font-family: webdings;
	font-size: 12px;
}
</style>

	</head>
	<body style="font-size: 12px" onload="countload();">
		<%@ include file="/pages/safeai/jsp/common/taglibs.jsp"%>
		<form action="${ctx}/addBillManage.do?method=updateBill" method="post"
			name="orderForm" id="orderForm">
			<table width="100%">
				<input type="hidden" name="orderindex.id" value="${orderall.id}" />
				<input type="hidden" name="orderindex.status"
					value="${orderall.status}" />
				<tr>
					<th colspan="4" height="25px">
						订单详细
					</th>
				</tr>
				<tr>
					<td class="td_01">
						订单号：
					</td>
					<td class="td_04">
						${orderall.id} 
					</td>

					<td class="td_01">
					&nbsp;
					</td>
					<td class="td_04">
								&nbsp;
							</td>

				</tr>
			
				<tr>
					<td class="td_01">
						订单状态：
					</td>
					<td class="td_04">
							 ${aa} 
					</td>

					<td class="td_01">
						下单时间：
					</td>
					<td class="td_04">
								${orderall.adddate}
							</td>

				</tr>
				<tr>
					<td class="td_01">
						收货人城市：
					</td>
					<td class="td_04">
							${orderall.city}
					</td>

					<td class="td_01">
						编辑人：
					</td>
					<td class="td_04">
						<bean:write name="USERINFO" property="username" />
						<br>
					</td>

				</tr>
				<tr>
					<td class="td_01">
						客户留言：
					</td>
					<td class="td_04">
						${orderall.customerword}
					</td>
					<input type="hidden" name="orderindex.customerid" id="id" />
					<td class="td_01">
						订单人VIP卡号：
					</td>
					<input type="hidden" name="password2" id="pas2" value="rayi" />
					<td class="td_04">
						${orderall.vipcode}
					</td>
				</tr>
				<tr>
					<td class="td_01">
						订货人：
					</td>
					<td class="td_04">
						${orderall.customername}
					</td>

					<td class="td_01">
						收货人：
					</td>
					<td class="td_04">
						${orderall.consignee}
					</td>

				</tr>
				<tr>
					<td class="td_01">
						订货人地址：
					</td>
					<td class="td_04">
						${orderall.paddress}
					</td>

					<td class="td_01">
						收货人地址：
					</td>
					<td class="td_04">
						${orderall.address}
					</td>

				</tr>
				<tr>
					<td class="td_01">
						订货人邮编：
					</td>
					<td class="td_04">
						${orderall.pwpostcode}
					</td>
					<td class="td_01">
						收货人邮编：
					</td>
					<td class="td_04">
						${orderall.postcode}
					</td>

				</tr>
				<tr>
					<td class="td_01">
						订货人电话：
					</td>
					<td class="td_04">
						${orderall.mobile}
					</td>
					<td class="td_01">
						联系电话：
					</td>
					<td class="td_04">
						${orderall.mobilephone}
					</td>
				</tr>
					
				<tr>
					<td class="td_01">
						付款方式：
					</td>
					<td class="td_04">
						${orderall.pname}
					</td>
					<td class="td_01">
						配送方式：
					</td>
					<td class="td_04">
						${orderall.dname}
					</td>
				</tr>
				<tr>
					<td class="td_01">
						发票抬头：
					</td>
					<td class="td_04">
						${orderall.invoicecompany}
					</td>
					<td class="td_01">
						发票内容：
					</td>
					<td class="td_04">
						${orderall.invoicecontent}
					</td>
				</tr>
			</table>
			<br>
			<table width="100%" id="buzhi" align="center">
				<tr>
					<td colspan="7" class="list_tit">
						商品信息
					</td>
				</tr>
				<tr>
					<th class="td_01" height="18px">
						物品
					</th>
					<th class="td_01" height="18px">
						备注
					</th>
					<th class="td_01">
						<INPUT name=price type=hidden>
						单价
					</th>
					<th class="td_01">
						<INPUT name=count type=hidden>
						数量
					</th>
					<th class="td_01">
						是否开发票
					</th>
					<th class="td_01">
						是否特价
					</th>
					<th class="td_01">
						<INPUT name=cash type=hidden>
						金额
					</th>
					
				</tr>
				<logic:iterate id="product" name="productlist" indexId="cd">
					<tr class=tableData id=tdt>
						<td class="td_03">
							${product.name}
						</td>
						<td class="td_03">
							${product.remark}
						</td>
						<td class="td_03">
						<logic:notEqual value="2" name="product"
							property="isspecialoffer">
						<logic:equal value="0" name="product" property="hasinvoice">
						${product.unitprice}
						</logic:equal>	
						</logic:notEqual>
						<logic:equal value="2" name="product"
							property="isspecialoffer">
						<logic:equal value="1" name="product" property="hasinvoice">
						${product.pricetax}
						</logic:equal>	
						</logic:equal>
							
						</td>
						<td class="td_03">
							${product.number}
						</td>
						<td class="td_03">
							<logic:equal value="0" name="product" property="hasinvoice">否</logic:equal>
							<logic:equal value="1" name="product" property="hasinvoice">是</logic:equal>
						</td>
						<td class="td_03">
						<logic:equal value="2" name="product"
							property="isspecialoffer">是</logic:equal>
						<logic:notEqual value="2" name="product"
							property="isspecialoffer">不是</logic:notEqual>
					</td>
						<td class="td_03">
							cd
						</td>
					</tr>
				</logic:iterate>
				<tr>
					<td class="td_04" align="right" colspan="7">
						<div style="width:93%;float:left;text-align:right">支付积分：</div>
						<div id="gaousepoint" style="width:7%;float:right;text-align:center"> <logic:empty name="orderall"
								property="usepoint">
						0
						</logic:empty> <logic:notEmpty name="orderall" property="usepoint">
							${orderall.usepoint}
							</logic:notEmpty> </div>
					</td>
				</tr>
				<tr>
					<td align="right" class="td_04" colspan="7">
						<div style="width:93%;float:left;text-align:right">支付滞留金：</div>
						<div id="gaousebalance"  style="width:7%;float:right;text-align:center">${orderall.usebalance}</div>
					</td>
				</tr>
				<tr>
					<td align="right" class="td_04" colspan="7">
						<div style="width:93%;float:left;text-align:right">配送金额：</div>
						<div id="gaoneedcarriage" style="width:7%;float:right;text-align:center">${orderall.needcarriage}</div>
					</td>
				</tr>
				<tr>
				<td align="right" class="td_04" colspan="7">
					<div style="width: 93%; float: left; text-align: right">
							优惠券：
						</div>
						<div id="gaoneedcarriage"
							style="width: 7%; float: right; text-align: center">
							${youmo.favourablemoney}
						</div>
				</td>
			</tr>
				<tr>
				<td align="right" class="td_04" colspan="7">
					<div style="width:93%;float:left;text-align:right">合计金额：</div>
							<div style="width:7%;float:right;text-align:center" id="gaotaltole"> ${orderall.needpay}</div>
					
				</td>
			</tr>
			<!--  
				<tr>
					<td align="right" class="td_04" colspan="7">
							<div style="width:93%;float:left;text-align:right">合计金额：</div>
							<div style="width:7%;float:right;text-align:center" id="gaotaltole"></div>
					</td>
				</tr>
-->
				<input type="hidden" name="temp" value="1" />
			</table>
			<br>
			<table width="100%">
			<tr align="center">
			<td nowrap class="td_03">
						<input type="button" value="日&nbsp;&nbsp;&nbsp;志" class="btn"
							style="border: 1 solid #000000"
							onclick="theBigPropper('addBillManage.do?method=selectLog&id=${orderall.id}',500,500)" />
							&nbsp;&nbsp;&nbsp;&nbsp;
							 
							<input type="button" value="返&nbsp;&nbsp;&nbsp;回" class="btn"
							style="border: 1 solid #000000"
							onclick="javascript:history.back();" />
					</td>
			</tr>
			</table>
		</form>
	</body>

</html>